package com.ruoyi.material.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * vims平台截图信息对象 vims_image_info
 * 
 * @author cyw
 * @date 2021-07-28
 */
public class VimsImageInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String fileCode;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String imgUrl;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String channelName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String channelCode;
    public VimsImageInfo(){}
    public VimsImageInfo(String id, String fileCode, String imgUrl, String channelName, String channelCode) {
        this.id = id;
        this.fileCode = fileCode;
        this.imgUrl = imgUrl;
        this.channelName = channelName;
        this.channelCode = channelCode;
    }
    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setFileCode(String fileCode) 
    {
        this.fileCode = fileCode;
    }

    public String getFileCode() 
    {
        return fileCode;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setChannelName(String channelName) 
    {
        this.channelName = channelName;
    }

    public String getChannelName() 
    {
        return channelName;
    }
    public void setChannelCode(String channelCode) 
    {
        this.channelCode = channelCode;
    }

    public String getChannelCode() 
    {
        return channelCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fileCode", getFileCode())
            .append("imgUrl", getImgUrl())
            .append("channelName", getChannelName())
            .append("channelCode", getChannelCode())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public String getSaveDate(){
        StringBuffer sb = new StringBuffer();
        sb.append("imgUrl:").append(getImgUrl()).append("*1*1*1*")
                .append("channelName:").append(getChannelName()).append("*1*1*1*")
                .append("channelCode:").append(getChannelCode()).append("*1*1*1*")
                .append("receivedTime:").append(getCreateTime());
        return sb.toString();
    }
}
